<template>
  <div class="issues-list">
    <template v-if="data.length">
      <Item
        v-for="item of data"
        :key="item.id"
        :data="item"
        :currentRepo="currentRepo"
      />
    </template>
    <No-content v-else size="60"/>
  </div>
</template>

<script>
import Item from './Item.vue'
import NoContent from '@/components/NoContent'

export default {
  components: {
    Item,
    NoContent
  },
  props: {
    data: {
      type: Array,
      required: true
    },
    currentRepo: {
      type: String,
      required: true
    }
  },
  name: 'issues-list'
}
</script>

<style>

</style>